package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.ClearOrdersettingDao;
import com.itheima.service.ClearOrdersettingService;
import com.itheima.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;
@Service(interfaceClass = ClearOrdersettingService.class)
@Transactional
public class ClearOrdersettingServiceImpl implements ClearOrdersettingService {
    @Autowired
   private ClearOrdersettingDao clearOrdersettingDao;
    @Override
    public void clearOrdersetting() {
        Date date = new Date();
     clearOrdersettingDao.clearOrdersetting(date);
    }
}
